import 'package:get/get.dart';
import 'package:xinxuan/http/http_util_service.dart';
import 'package:xinxuan/vo/articles_list_vo.dart';

class AboutUsPageController extends GetxController {
  
  /// 文章列表
  var articlesArr = <ArticlesItem>[].obs;

  @override
  void onReady() {
    getAboutUs();
    super.onReady();
  }

  /// 获取关于我们
  getAboutUs() async {
    ArticlesListVo articlesListVo = await HttpUtilService.getArticlesList(categoryId: 1);
    articlesArr.value = articlesListVo.data!;
    update();
  }

}